package br.com.felix.fwt.ui.css;

import java.io.Serializable;


/**
 * Represents a size measured in Pixels.
 */
public class PixelSize extends Size implements Serializable{

	private static final long serialVersionUID = 5580971878438471186L;
	
	/** The value. */
	public Integer value;
	
	/**
	 * Instantiates a new pixel size.
	 * 
	 * @param value the value
	 */
	public PixelSize(Integer value) {
		this.value = value;
	}
	
	/**
	 * Returns the CSS value for the PixelSize.
	 * @return the value concatenated with 'px'.
	 */
	public String value(){
		return value.toString()+"px";
	}

}
